import QtQuick 2.0

Column {
  spacing: 2
  anchors.centerIn: parent


  MenuButton {
    text: "Resume"
    onClicked: scene.state = "" // reset to default state, so hide this menu
  }

  MenuButton {
    text: "Restart"
    onClicked: {
      level.restartGame();
      scene.state = "" // reset to default state, so hide this menu
    }
  }

  MenuButton {
    text: "Toggle Score Updating"
    onClicked: scene.enableConstantScoreTextUpdating = !scene.enableConstantScoreTextUpdating // performance test for changing frequency of score updating
  }

  MenuButton {
    text: "Toggle LevelMovement"
    onClicked: level.changeLevelMovementMode() // performance test on mobile devices if movement with fixed timestep looks smoother or with variable timestep
  }

}
